/*
 * @Date: 2022-02-14 14:09:57
 * @LastEditors: 春贰
 * @Desc:
 * @LastEditTime: 2023-11-08 15:07:54
 * @FilePath: \server\system\common\initial\config.go
 */
package initial

const ConfigToml = `[app]
HttpPort = 8023
HttpsPort = 8443
WsPort = 2345   ###websocket 端口
WssPort = 2343   ###websocket 端口
PageSize = 20
Env = "dev"   ####运行环境 dev/prod
Timeout = 0   ##单位秒，0表示不设置超时 

# 数据库配置 
# mysql
[db]
DBType = "mysql"
DBName = "tjs_mes"
DBUser = "root"
DBPwd = "123456"
DBHost = "localhost"
DBloglevel="warn"        #日志级别 close/info/warn/error
DBoutpath = "databackup"

 
# 日志配置
# level:debug/info/warn/error/panic/fatal 
[zaplog]
director = 'runtime/log'
level = 'debug'

#Jwt 
[jwt]
JwtSecret = "ADSDWW#DSADSADSAWJJK"
BufferTime = 8640     #单位秒,缓冲时间
ExpiresTime = 8640000    #单位秒,过期时间
Issuer     = "antd-vue-dcy"

[upload]
Path = 'upload'   ###首尾不带"/"
MaxSize = 500   ##单位：M
AllowType = ["png", "jpeg", "jpg", "zip"]  

[ldap] 
Host = 'ldap://dcy.dcy:389'
AdminUser = 'CN=Administrator,CN=Users,DC=dcy,DC=dcy'
AdminPass = '123456'
BaseDn = 'dc=dcy,dc=com'

[pdf]
ReplaceBefore = ["ReplaceBefore"]  
ReplaceAfter = ["ReplaceAfter"]  
`
